// 云函数入口文件
const cloud = require('wx-server-sdk')

cloud.init({
  env: 'cloud1-2g30bqnie67f9beb',
  traceUser: true,
})
const DB = cloud.database()
const _ = DB.command
// 云函数入口函数
exports.main = async (event, context) => {
  let arr=event.arr
  console.log(arr);
  try {
    return await DB.collection('dataList').where({
      _id:_.in(arr)
    }).remove()
  } catch(e) {
    console.error(e)
  }
  return 1;
}